package com.guigu.aoyun;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@MapperScan("com.guigu.aoyun.mapper")
@ComponentScan(basePackages = "com.guigu")
public class AoYunApplication {
    public static void main(String[] args){
        SpringApplication.run(AoYunApplication.class, args);
    }

    // 加入分页插件
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }

}
